package com.education.service;

import com.education.model.MajorModel;
import com.education.model.QuestionExam;
import com.education.model.Register;
import com.education.model.ResultDo;

import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2017/8/8.
 * 报名模块
 */
public interface RegisterService {

    /**
     * 添加报名信息
     * @param register
     * @return
     */
    int  addRegisterInfomation(Register register) throws Exception;

    /**2017/8/18 王娇
     * 查询所有专业
     * @return
     * @throws Exception
     */
    List<MajorModel> getMajor()throws Exception;

    /**
     * 2017/8/19 王娇
     * 生成入学测试题
     * 选择题
     * @return
     * @throws Exception
     */
    Map<String, List> enterTestSelect(Integer scoreType) throws Exception;
    /**
     * 2017/8/19 王娇
     * 生成入学测试题
     * 判断题
     * @return
     * @throws Exception
     */
   /* List<QuestionExam> enterTestJudge(Integer scoreType) throws Exception;*/

    /**
     * 2017/8/21
     * 插入入学成绩
     * @param total
     * @param enterPhone
     * @return
     * @throws Exception
     */
    Integer addEnterScore( Integer total ,String enterPhone) throws Exception;

    /**
     * 查询
     * @param searchMessage
     * @return
     * @throws Exception
     */
    List<Register> getRegister(String genre,String searchMessage);
}
